2993d97c97a69906b6f790bbc0608848f26d5b48,src/main/java/org/apache/hadoop/hbase/HServerAddress.java,HServerAddress,HServerAddress,#String#,54

Before Change


    }
    String host = hostAndPort.substring(0, colonIndex);
    int port =
      Integer.valueOf(hostAndPort.substring(colonIndex + 1)).intValue();
    this.address = new InetSocketAddress(host, port);
    this.stringValue = hostAndPort;
  }

After Change


      throw new IllegalArgumentException("Not a host:port pair: " + hostAndPort);
    }
    String host = hostAndPort.substring(0, colonIndex);
    int port = Integer.parseInt(hostAndPort.substring(colonIndex + 1));
    this.address = new InetSocketAddress(host, port);
    this.stringValue = hostAndPort;
    checkBindAddressCanBeResolved();